package ad.android.dao;

import java.util.List;

import ad.android.dto.cond.AdCondition;
import ad.android.dto.cond.SearchCondition;
import ad.android.exception.DaoException;
import ad.android.model.Ad;

public interface IAdDao {

	/**
	 * 根据ID查找广告
	 * @param id
	 * @return 
	 */
	public Ad findAdById(Long id)throws DaoException;

	/**
	 * 查找权值为intWeight的广告数
	 * @param intWeight
	 * @return
	 * @throws DaoException
	 */
	public int findAdNumByWeight(int intWeight)throws DaoException;

	/**
	 * 条件查找
	 * @param cond
	 * @param sCond
	 * @return
	 * @throws DaoException
	 */
	public List<Ad> findAdByCondition(AdCondition cond, SearchCondition sCond)throws DaoException;


}
